package cn.netjava.robo3d;

import com.jme.light.DirectionalLight;
import com.jme.math.Vector3f;
import com.jme.renderer.ColorRGBA;
import com.jme.scene.Node;

public class SceneLight extends DirectionalLight {

	public SceneLight(){
		//DirectionalLight light = new DirectionalLight();
//		this.set
	    this.setDiffuse(new ColorRGBA(1.0f, 1.0f, 1.0f, 1.0f));
	    this.setAmbient(new ColorRGBA(0.5f, 0.5f, 0.5f, 1.0f));
	    this.setDirection(new Vector3f(-1,-1,-0.5f));
	    this.setShadowCaster(true);
	    this.setEnabled(true);
	    

	
	}
	
	
    	
}
